using UnityEngine;
using System.Collections;

public class PlayerLevel : MonoBehaviour {
	
	GameObject playerLevelObject;
	Player playerScript;
	string playerLevelText;
	Component playerLevel;
	
	
	void Awake()
	{
		playerLevelObject = GameObject.Find("LevelHUD");
		playerLevel = playerLevelObject.guiText;
		playerScript = GetComponent<Player>();
	}
	
	// Use this for initialization
	void Start () {
		playerLevelText = "Player Level: " + playerScript.getLevel();
		playerLevel.guiText.text = playerLevelText;
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}
